package com.kalaqia.base.ui;

import android.util.Log;

import com.kalaqia.base.ui.list.BaseListContract;

import java.util.ArrayList;
import java.util.List;

/**
 * function:
 * project:BaseUIModule
 * describe:
 * created owner:kalaqia 421407393@qq.com
 * created date:2018/1/17 9:41.
 */
class RefreshDemoPresenter implements BaseListContract.Presenter {

    private BaseListContract.View<RefreshDemoModel> mView;

    public RefreshDemoPresenter(BaseListContract.View<RefreshDemoModel> mView) {
        this.mView = mView;
    }

    @Override
    public void refreshData(int page) {
        Log.i("RefreshList", "afterNoNetFinish");

        List<RefreshDemoModel> lists = new ArrayList<>();

        for (int i = 0; i < 1; i++) {
            lists.add(new RefreshDemoModel());
        }
        mView.showResult(lists);
        mView.setAllPage(1);

    }
}
